<div class="toolbar">
	<h1>修改菜谱</h1>
	<a class="button back" onclick='category.showDetail({JSON.stringify($T.category)},"pop-out");'>菜谱维护</a>
	<a class="button right" onclick='foodList.deleteObj({$T.menu.id},{JSON.stringify($T.category)});'>删除</a>
</div>
<div class="content">
	<form id="categoryForm" name="categoryForm" method="post">
		<ul class="rounded">
				<li>
					<div class="label">菜名</div>
					<div class="field"><input type="text" name="name" value="{$T.menu.name}" maxlength="20" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>
				<li>
					<div class="label">单价</div>
					<div class="field"><input type="number" name="price" value="{$T.menu.unit_price}" maxlength="10" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>				
				<li>
					<div class="label">单位</div>
					<div class="field"><input type="text" name="unit" value="{$T.menu.unit}" maxlength="10" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>				
		</ul>
		<div style="text-align: center">
			<a href='javascript:foodList.update($("input:text[name=\"name\"]").val(),$("input[name=\"price\"]").val(),$("input:text[name=\"unit\"]").val(),{$T.menu.id},{JSON.stringify($T.category)})' class="button-green" style="width: 270px">保存</a>
		</div>
	</form>
</div>